package com.youlai.spring.sample;

import com.youlai.spring.sample.service.IPersonService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan("com.youlai.spring.sample.**")
public class SpringSampleApplication {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
				SpringSampleApplication.class
		);

		IPersonService personService = context.getBean(IPersonService.class);
		personService.speak();
	}
}
